<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "t_course_notice_file".
 *
 * @property string $id
 * @property string $course_id 课程Id
 * @property string $name 文件名
 * @property string $file_uri 资源路径
 * @property string $mime mime类型
 * @property string $size 文件大小
 * @property string $status 状态
 * @property string $create_by 创建人
 * @property string $create_time 创建时间
 * @property string $type 文件类型
 * @property int $del_flag 删除标示
 */
class BCourseOutlineFile extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'b_course_outline_file';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['course_id','name', 'file_uri', 'type', 'create_by', 'create_time', 'del_flag', 'mime','size'], 'required'],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'course_id' => 'course ID',
            'title'=>'Title',
            'content'=>'Content',
            'create_by' => 'Create By',
            'name' => 'Name',
            'file_uri' => 'Uri',
            'mime' => 'Mime',
            'size' => 'Size',
            'status' => 'Status',
            'create_time' => 'Create Time',
            'type' => 'Type',
            'del_flag' => 'Del Flag',
        ];
    }
}
